package example;

import org.junit.jupiter.api.*;


@TestMethodOrder(MethodOrderer.OrderAnnotation.class)

public class test_demo {

    @Order(2)
    @Test
    public void test1(){
        System.out.println ("这是第一个测试用例");
    }

    @Order(1)
    @Test
    public void test2(){
        System.out.println ("这是第二个测试用例");
    }

    @AfterAll
    static void end(){
        System.out.println ("结束测试");
    }

    @BeforeAll
    static void start(){
        System.out.println ("开始测试");
    }

}
